package com.my.main.service.userAndRight.serviceImpl;

import com.my.main.base.mapper.BaseMapper;
import com.my.main.base.service.Impl.BaseServiceImpl;
import com.my.main.entity.userAndRight.SysRightsResource;
import com.my.main.mapper.userAndRight.SysRightsResourceMapper;
import com.my.main.service.userAndRight.SysRightsResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class SysRightsResourceServiceImpl extends BaseServiceImpl<SysRightsResource>  implements SysRightsResourceService {

    @Autowired
    private SysRightsResourceMapper sysRightsResourceMapper;
    @Resource(name= "sysRightsResourceMapper")
    public void setBaseMapper(BaseMapper<SysRightsResource> sysRightsResourceMapper) {
        super.setBaseMapper(sysRightsResourceMapper);
    }


    @Override
    public List<SysRightsResource> querySysRightsResourceListForRole(String parentId) {
        return sysRightsResourceMapper.querySysRightsResourceListForRole(parentId);
    }
}
